﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lights.Types
{
    [Serializable]
    class PhotoList : List<int>
    {
        public string Name { get; set; }

        public PhotoList(string name)
        {
            this.Name = name;
        }

        public override string ToString()
        {
            return this.Name;
        }

        public override int GetHashCode()
        {
            int hashcode = 0;
            foreach (int item in this)
            {
                hashcode ^= item;
            }
            return hashcode;
        }
    }
}
